<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Send mSQL query</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.msql-data-seek.html">msql_data_seek</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.msql-dbname.html">msql_dbname</a></div>
 <div class="up"><a href="ref.msql.html">mSQL 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.msql-db-query" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">msql_db_query</h1>
  <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">msql_db_query</span> &mdash; <span class="dc-title">Send mSQL query</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.msql-db-query-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">resource</span> <span class="methodname"><strong>msql_db_query</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$database</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$query</code></span>
   [, <span class="methodparam"><span class="type">resource</span> <code class="parameter">$link_identifier</code></span>
  ] )</div>

  <p class="para rdfs-comment">
   <span class="function"><strong>msql_db_query()</strong></span> selects a database and executes a query
   on it.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.msql-db-query-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">database</code></em></dt>

     <dd>

      <p class="para">
       The name of the mSQL database.
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">query</code></em></dt>

     <dd>

      <p class="para">
       The SQL query.
      </p>
     </dd>

    
    <dt>
<em><code class="parameter">
link_identifier</code></em></dt>
<dd>
<p class="para">mSQL 连接。如果不指定，则使用由
<span class="function"><a href="function.msql-connect.html" class="function">msql_connect()</a></span> 最近打开的连接。如果没有找到该连接，函数会尝试通过调用
<span class="function"><a href="function.msql-connect.html" class="function">msql_connect()</a></span> 建立连接并使用它。
</p></dd>

   </dl>

  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.msql-db-query-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para"> 
   Returns a positive mSQL query identifier to the query result, or <strong><code>FALSE</code></strong>
   on error.
  </p>  
 </div>

 <div class="refsect1 seealso" id="refsect1-function.msql-db-query-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="function.msql-query.html" class="function" rel="rdfs-seeAlso">msql_query()</a> - Send mSQL query</span></li>
   </ul>
  </p>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.msql-data-seek.html">msql_data_seek</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.msql-dbname.html">msql_dbname</a></div>
 <div class="up"><a href="ref.msql.html">mSQL 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
